﻿<%@ Page Language="C#" Inherits="E.Web.Teacher.student.ScoreEdit" %>
<%--<%@ Import Namespace="E.Enum" %>--%>
<%@ Import Namespace="E.Model" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>学员成绩输入</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  <link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/exam.css" type="text/css" media="all" />
  <script type="text/javascript" src="/js/exam.js"></script>
  <script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
  <script type="text/javascript">
    window.onload = function() {
      document.getElementById("loading").style.display = "none";
      document.getElementById("form1").style.display = "";
    }
  </script>
</head>
<body>
  <div id="loading">数据加载中，请稍等</div>
  <form id="form1" method="post" action="/student/InputHandle.aspx" style="display:none;">
    <div class="m_top"></div>
    <div class="block" style="height:100px;">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;学员成绩输入</div>
      </div>
      <div class="spe_line_2"></div>
      
      <div class="box_1">
        <div class="fl tr left">登录名：</div>
        <div class="fl dis_r"><%=model.LoginID %></div>
      </div>      
      <div class="box_1">
        <div class="fl tr left">姓名：</div>
        <div class="fl dis_r"><%=model.UserName %></div>
      </div>   
      <div class="box_1">
        <div class="fl tr left">项目名称：</div>
        <div class="fl dis_r"><%=model.CertificateName %></div>
      </div>
      <% if (model.ScoreLog != null && model.ScoreLog.Count > 0) { %>
        <% int i = 0; %>
        <% //foreach(System.Collections.Generic.KeyValuePair<EnumScoreCategory,int> kvp in model.ScoreLog) { %>
        <% foreach(ScoreModel sm in model.ScoreLog) { %>
      <div class="box_1">
        <div class="fl tr left"><%=sm.CategoryName %>：</div>
        <div class="fl"><input type="text" id="Score_<%=i %>" name="Score_<%=i %>" value="<%=sm.Score %>" /><input type="hidden" id="Category_<%=i %>" value="<%=sm.ScoreCategoryID %>" /></div>
      </div>
        <% i++; %>
        <% } %>
      <input type="hidden" id="count" name="count" value="<%=model.ScoreLog.Count %>" />
      <input type="hidden" id="id" name="id" value="<%=id %>" />
      <input type="hidden" id="uid_v" name="uid_v" />
      <input type="hidden" id="scid_v" name="scid_v" />
      <input type="hidden" id="s_v" name="s_v" />
      <% } %>
      <div style="width:350px; margin-top:20px; text-align:center;">
        <input type="image" src="/images/btn/confirm.gif" style="width:52px; height:22px;" onclick="return CheckEditInputForm();" />
        &nbsp;&nbsp;<a href="javascript:history.back();"><img alt="" src="/images/btn/back.gif" /></a>
      </div>
    </div>
  </form>
</body>
</html>
